Workarounds before ruby-core officially supports Proc#to_source (and
friends).
